<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>账单记录</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="format-detection" content="email=no"/>
<meta name="format-detection" content="address=no"/>
<link href="__PUBLIC__/css/base.css" rel="stylesheet"/>
</head>
<body class="huibg">
<!---  头部开始  -->
<div class="top clearfix">
	<div class="icon_left"></div>
	<div class="icon_right"></div>
</div>
<!---  头部结束  -->
<div class="bill_record cssss">
	<div class="list_s">
		<div class="zhangdan none">您没有最新账单，亲。</div>
	</div>
	<a class="more">查看更多</a>
</div>
</body>
<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/comm.js"></script>
<script>
var pageSize=5;//每页多少条
var pageIndex=0;//初始化第0页
var price;
var sta;
function getlist(){
	var new_element;
	var new_element1;
	$.post('__URL__/bill_record_page',{
		pageIndex:pageIndex
	},function(e){
		if(e.list==undefined){
			$(".more").addClass("none");
			$(".zhangdan").removeClass("none");
			return;
		}
		new_element='<div class="list">'+
			'<div class="title">'+e.month+'</div>'+
			'<div class="box"></div>'+
		'</div>';			
		$(".list_s").append(new_element);
		for(var i=0;i<e.list.length;i++){
			new_element1='<div class="box1">'+
				'<p>'+
					'<span>'+e.list[i].action+':</span>'+
					'<span class="name" style="width:60%">'+e.list[i].content+'</span>'+
					'<span class="expense" style="width:20%">'+e.list[i].fee+'</span>'+
				'</p>'+
				'<p>'+
					'<span>'+e.list[i].time+'</span>'+
					'<span class="right">交易成功</span>'+
				'</p>'+
			'</div>';
			$(".box").append(new_element1);
		}
	});
	pageIndex++;//当前计数加
}
getlist();
$(".more").on("click",function(){
	getlist();
});
</script>
</html>